package com.zhouyu.service;

import java.beans.PropertyEditor;
import java.beans.PropertyEditorSupport;

/**
 * 属性转换器
 *
 * @author admin
 * @date 2025/10/14-6:02 下午
 */
public class StringToUserPropertyEditor extends PropertyEditorSupport implements PropertyEditor {

	@Override
	public void setAsText(String text) throws IllegalArgumentException {
		User user = new User();
		user.setName(text);
		this.setValue(user);
	}
}
